package ru.housewife.reports;

import ru.housewife.form.WareFormView;

/**
 * TODO: add description
 *
 * @author atroshanin
 */
public class WareReportObject implements Comparable<WareReportObject> {

    private WareFormView wareView;

    private float count;

    public WareReportObject(WareFormView wareView) {
        this.wareView = wareView;
    }

    public WareFormView getWareView() {
        return wareView;
    }

    public float getCount() {
        return count;
    }

    public void addCount(float count) {
        this.count += count;
    }

    @Override
    public int compareTo(WareReportObject that) {
        return this.wareView.getWare().compareTo(that.wareView.getWare());
    }
}
